package com.hxd.service;

import com.hxd.dao.User_dutyDao;
import com.hxd.pojo.User_duty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class User_dutyServiceImpl implements User_dutyService {
    @Autowired
    User_dutyDao user_dutyDao;
    //查找所有职位
    public List<User_duty> selectUser_duty() {
        List<User_duty> user_dutyDaos = user_dutyDao.selectUser_duty();
        return user_dutyDaos;
    }

    //根据ID查找这职位
    public User_duty selectOneUser_duty(int id) {
        return user_dutyDao.selectOneUser_duty(id);
    }
}
